import Vue from 'vue';
import App from './App';
import request from './utils/request.js'
import uView from 'uview-ui';
import md5 from "./uview-ui/libs/function/md5"

import store from './store'
// 弹出框
import DialogBox from './components/DialogBox/DialogBox';
import DialogBox0 from './components/DialogBox/DialogBox0';
import {
    judgeLogin
} from '@/common/login.js';

import {
    selectDictLabel,
    message,
    loading,
    hideLoading,
    toPage,
} from "@/utils/common";

Vue.prototype.$request = request
Vue.prototype.$md5 = md5
Vue.prototype.$bus = new Vue()
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.$message = message
Vue.prototype.$loading = loading
Vue.prototype.$hideLoading = hideLoading
Vue.prototype.$toPage = toPage
Vue.prototype.judgeLogin = judgeLogin;
Vue.prototype.$link = 'https://yl.weilankangyang.com/static/mini_program/' //放静态图片地址URL
Vue.prototype.$imgUrl = 'https://yl.weilankangyang.com/static/mini_program/thirdParty/' //存放静态图片thirdParty/地址URL


import publicModule from "@/components/common/public-module.vue";
Vue.component("public-module", publicModule);
// 全局组件
Vue.component('DialogBox', DialogBox);
Vue.component('DialogBox0', DialogBox0);

Vue.use(uView);

App.mpType = 'app'

const app = new Vue({
    store,
    ...App
})
app.$mount()